
#include <stdio.h>
int main()
{
	int a[5] = { -12,8,23,0,66 };
	int n = sizeof(a) / sizeof(a[0]);
	int Sum(int* input, int n);
	int m =Sum(a, n);
	printf("sum=%d\n", m);
	return 0;
}
int Sum(int *input, int n)
{
	int sum = 0;
	int i = 0;
	for ( i = 0; i < n; i++)
		sum += input[i];
	return sum;
}